| Previous | Chapter contents | Chapter top | Section top | Next |
You can use the QTVRCoordToAngles function to get the pan and tilt angles of a floating-point coordinate in a panorama.
OSErr QTVRCoordToAngles (
QTVRInstance qtvr,
QTVRFloatPoint*coord,
float*panAngle,
float*tiltAngle);
The QTVRCoordToAngles function returns, in the floating-point values pointed to by the panAngle and tiltAngle parameters, the pan and tilt angles of the point specified by the coord parameter. This function is useful for setting up angles in a back buffer imaging procedure; if you know a coordinate in the back buffer, you can call QTVRCoordToAngles to get the corresponding angles.
Use QTVRAnglesToCoord (next) to get a floating-point coordinate from a pair of pan and tilt angles.
| Previous | Chapter contents | Chapter top | Section top | Next |